import React, { Component } from 'react';
import './goodsTitle.scss';
import Card from '../../../components/card';

interface GoodsTitleCardProps {
    title: string;
}

export default class GoodsTitleCard extends Component<GoodsTitleCardProps> {
    cardInfo: {
        title: string;
        width: string;
    }
    constructor (props: GoodsTitleCardProps) {
        super(props);
        this.cardInfo = {
            title: '宝贝信息',
            width: '20%',
        };
    }

    render () {
        const { title: cardTitle, width } = this.cardInfo;
        const { title } = this.props;
        return (
            <Card title={cardTitle} width={width}>
                {
                    <p className="goods-info-title">{title}</p>
                }
            </Card>
        );
    }
}
